const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  // publicPath: './',
  lintOnSave: false,
  devServer: {
    port: 8080,
    proxy: {
      '/api': {
        target: 'http://192.168.110.128:8080',
        changeOrigin: true,
        ws: true, // 允许代理 WebSocket 和 SSE
        pathRewrite: {
          '/api': '',
        },
      },
    },
    compress: false,
    client: {
      overlay: false
    },
  },
})
